using Azrng.DbOperator;

namespace DBCHM.Models
{
    public class DbConnectConfigEntity
    {
        /// <summary>
        /// ID
        /// </summary>
        public string Id { get; set; } = null!;

        /// <summary>
        /// 连接名
        /// </summary>
        public string ConnectName { get; set; } = null!;

        /// <summary>
        /// 数据库类型
        /// </summary>
        public DatabaseType DbType { get; set; }

        /// <summary>
        /// 主机地址
        /// </summary>
        public string Host { get; set; } = null!;

        /// <summary>
        /// 端口
        /// </summary>
        public int Port { get; set; }

        /// <summary>
        /// 数据库名
        /// </summary>
        public string DataBase { get; set; } = null!;

        /// <summary>
        /// 模式
        /// </summary>
        public string Schema { get; set; } = null!;

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; } = null!;

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; } = null!;

        /// <summary>
        /// 超时时间(秒)
        /// </summary>
        public int Timeout { get; set; }

        /// <summary>
        /// 附加参数
        /// </summary>
        public string? AdditionalParameter { get; set; }

        /// <summary>
        /// 连接字符串
        /// </summary>
        public string ConnString { get; set; }
    }
}